﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LPY.LeHealth.Model;
using LPY.LeHealth.DAL;
using LPY.LeHealth.Service;



namespace LPY.LeHealth.WebSite.Controllers
{
    public class WapController : Controller
    {
        //Combo2_dal dal = new Combo2_dal();
        //Speedy_dal spdal = new Speedy_dal();
        //bianjieruko_dal biandal = new bianjieruko_dal();
        //capacity_dal capdal = new capacity_dal();
        private bianjierukoService bianjierukoService;
        private CapacityService CapacityService;
        private SpeedyService SpeedyService;
        private combo2service combo2service;

        public WapController()
        {
            bianjierukoService = new bianjierukoService();
            CapacityService = new CapacityService();
            SpeedyService = new SpeedyService();
            combo2service = new combo2service();
        }
            
        // GET: Wap
        public ActionResult Index()
        {
            return View();
        }
        /// <summary>
        /// json传值显示套餐信息
        /// </summary>
        /// <returns></returns>
        public JsonResult show1()
        {
            return Json(combo2service.Getcombo(), JsonRequestBehavior.AllowGet);
        }
        /// <summary>
        /// json传值显示找医院详情
        /// </summary>
        /// <returns></returns>
        public JsonResult showspeedy()
        {
            return Json(SpeedyService.Getspeedy(), JsonRequestBehavior.AllowGet);
        }
        /// <summary>
        /// json传值显示快捷入口
        /// </summary>
        /// <returns></returns>
        public JsonResult showzhao()
        {
            return Json(bianjierukoService.Getbian(), JsonRequestBehavior.AllowGet);
        }
        ///// <summary>
        ///// json传值显示智能体检入口
        ///// </summary>
        ///// <returns></returns>
        public JsonResult showcapacity()
        {
            return Json(CapacityService.Getcapacity(), JsonRequestBehavior.AllowGet);
        }
    }
}